#ifndef TICKETMONEYADJUSTWIDGET_H
#define TICKETMONEYADJUSTWIDGET_H

#include <QDialog>
#include "message.h"
#include "userrelationservice.h"
#include "userservice.h"

namespace Ui {
class TicketMoneyAdjustWidget;
}

class TicketMoneyAdjustWidget : public QDialog
{
    Q_OBJECT

public:
    explicit TicketMoneyAdjustWidget(QWidget *parent = nullptr);
    ~TicketMoneyAdjustWidget();

    void showWithMessage(Message *message);
private slots:
    void on_pushButtonCancel_clicked();

    void on_pushButtonSubmit_clicked();

private:
    double ticketIn;
    double ticketOut;
    double moneyIn;
    double moneyOut;
    double ticketValue;
    double moneyValue;

    Ui::TicketMoneyAdjustWidget *ui;

    UserRelation *relation;
    Message *message;

    UserRelationService userRelationService;
    UserService userService;
};

#endif // TICKETMONEYADJUSTWIDGET_H
